/**
 * 
 */
var interval;
var week=['일','월','화','수','목','금','토'];
function intervalInit(){
	
	document.getElementById('btnStart').onclick=bStart;
	document.getElementById('btnStop').onclick=bStop;

}
function bStart(){
	interval = setInterval(clock, 1000);
}
function bStop(){
	
	clearInterval(interval);
	
}
function clock(){
	
	var dow = new Date();
	cnt  =dow.getFullYear()+"년";
	cnt +=(dow.getMonth()+1)+"월";
	cnt +=(dow.getDate())+ "일";
	cnt +=week[dow.getDate()]+ "요일";
	
	cnt += dow.getHours() +":";
	cnt += dow.getMinutes()+":";
	cnt += dow.getSeconds();
	var r = document.getElementById('result');
	r.innerHTML =cnt;
	
}